package designpatterns.bridge;

/**
 * @author 真香
 * @create 2021-05-30 20:29
 */
public class Test {

    public static void main(String[] args){

        // 苹果笔记本
        Computer computer = new Laptop(new Apple());
        computer.info();

        // 联想台式机
        Computer computer2 = new Desktop(new Lenovo());
        computer2.info();

    }


}
